<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:f="http://java.sun.com/jsf/core"
   xmlns:h="http://java.sun.com/jsf/html"
   template="/WEB-INF/templates/default.xhtml"
   xmlns:p="http://primefaces.org/ui">
   <ui:define name="content">
   
   		<h:form id="formCadastro">  
		     <p:panel id="panelDocumento" header="Tramitar Documentos">  
			  	   <p:spacer height="10"/>
					  <p:tabView id="tabView">
						   	<p:tab title="Aba 1" id="aba1">
						   	</p:tab>
						   	<p:tab id="aba2" title="Aba 2">
						   		<h:inputText value="#{caixaEntradaBean.nome}"/>
						   		<p:button onclick="dlg2.show(); return false;" value="Abrir"/>
						   	</p:tab>
						   	<p:tab title="Aba 3" id="aba3">
						   	</p:tab>
					   </p:tabView>
					<p:spacer height="10"/>
			        <f:facet name="footer">
			        </f:facet>
		    </p:panel>
	    </h:form> 
	    
     	<p:dialog id="modalDialog" header="Modal Dialog" modal="true" height="100" widgetVar="dlg2">
    		<h:form>
	    		<h:outputText value="Assunto" />
	    		<h:inputText value="#{caixaEntradaBean.nome}"/>
	    		<p:commandButton value="atualizar" update=":formCadastro:tabView:aba2" oncomplete="dlg2.hide();"/>
	    	</h:form>
   		</p:dialog>
   </ui:define>
</ui:composition>
